package com.sys.service.impl;

import com.sys.dao.EmpDao;
import com.sys.pojo.Employee;
import com.sys.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpDao empDao;
    @Override
    public List<Employee> login() {
        return empDao.getEmp();
    }
}
